@/*
    查询标签的参数说明:

    name : 查询条件的名称
    id : 查询内容的input框id
    value:
    onEnter:回车事件
@*/
@var EnterHandler="+function(){}";
@if(isNotEmpty(onEnter)){
@   EnterHandler=onEnter;
@}

<div class="form-group">
    @if(!isEmpty(name)){
    <label for="${id}" class="control-label">${name}</label>
    @}
    <input type="text" class="hisui-searchbox" id="${id}" name="${id}" prompt="${prompt!}" value="${value!}"
        @if(isEmpty(width)){
		@	width="160px";
		@}
        style="width:${width!}"
    />
</div>
<script>
    $('#${id}').searchbox({ 
		searcher:function(value){
			${EnterHandler}('${id}',value);
		}
	}); 
</script>
